/**
 * Created by levy on 16/8/5.
 */

/**
 * props:
 *  data
 *  addClass
 *  addComponent
 */
const AddressDetail = React.createClass({
    render() {
        let data = this.props.data;
        return <div className={"detail address-detail " +　(this.props.addClass || '')}>
            {this.props.addComponent || ''}
            <div className="row">收货人: <span className="text-gray text-dot">{data.consignee}</span></div>
            <div className="row">手机号码: <span className="text-gray">{data.mobile}</span></div>
            <div className="row break-word">收货地址: <span className="text-gray">{data.address}</span></div>
        </div>
    }
});

export default AddressDetail;